﻿<%@ Page Language="C#" MasterPageFile="~/parents/pmaster.Master" AutoEventWireup="true" CodeBehind="PChangepassword.aspx.cs" Inherits="ESCHOOL.parents.WebForm7" Title="Change Password" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style4
        {
            width: 137px;
        }
        .style6
        {
            width: 299px;
        }
        .style7
        {
            width: 153px;
        }
        .style8
        {
            width: 180px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        <table class="style1">
            <tr>
                <td>
                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Panel ID="Panel1" runat="server" Height="140px" Width="493px">
                        <table class="style1">
                            <tr>
                                <td class="style8">
                                    Old Password</td>
                                <td class="style7">
                                    <asp:TextBox ID="tboldpass" runat="server" TextMode="Password"></asp:TextBox>
                                </td>
                                <td class="style6">
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                        ControlToValidate="tboldpass" ErrorMessage="Enter current password"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="style8">
                                    New Password</td>
                                <td class="style7">
                                    <asp:TextBox ID="tbnewpass" runat="server" TextMode="Password"></asp:TextBox>
                                </td>
                                <td class="style6">
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                        ControlToValidate="tbnewpass" ErrorMessage="Plz enter value"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="style8">
                                    Confirm Password</td>
                                <td class="style7">
                                    <asp:TextBox ID="tbcpass" runat="server" TextMode="Password"></asp:TextBox>
                                </td>
                                <td class="style6">
                                    <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                        ControlToCompare="tbcpass" ControlToValidate="tbnewpass" 
                                        ErrorMessage="Not valid"></asp:CompareValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="style8">
                                    <asp:Button ID="btnchg" runat="server" Text="Change" onclick="btnchg_Click" />
                                </td>
                                <td class="style6" colspan="2">
                                    <asp:Button ID="btncancel" runat="server" Text="Cancel" 
                                        CausesValidation="False" />
                                </td>
                            </tr>
                            <tr>
                                <td class="style8">
                                    &nbsp;</td>
                                <td class="style6" colspan="2">
                                    &nbsp;</td>
                            </tr>
                        </table>
                        <br />
                        <br />
                        <br />
                        <br />
                    </asp:Panel>
                </td>
            </tr>
        </table>
        &nbsp;&nbsp;
    </p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
</asp:Content>
